package com.lemon.components.wechart.order.supporter;

import com.lemon.components.wechart.enums.MsgTypeEnum;
import com.lemon.components.wechart.order.supporter.msgContent.ImageContent;

public class SendImageMsgOrder extends SendMsgOrder {

	//openid
	private String touser;
	private MsgTypeEnum msgtype;
	private ImageContent image;
	@Override
	public void check() {
		validateHasText(touser, "touser");
		validateNotNull(msgtype, "msgtype");
		validateNotNull(image, "image");
		validateHasText(image.getMediaId(), "getMediaId");
	}
	public String getTouser() {
		return touser;
	}
	public void setTouser(String touser) {
		this.touser = touser;
	}
	public MsgTypeEnum getMsgtype() {
		return msgtype;
	}
	public void setMsgtype(MsgTypeEnum msgtype) {
		this.msgtype = msgtype;
	}
	public ImageContent getImage() {
		return image;
	}
	public void setImage(ImageContent image) {
		this.image = image;
	}
	@Override
	public String toString() {
		return "SendImageMsgOrder [touser=" + touser + ", msgtype=" + msgtype + ", image=" + image + "]";
	}

}
